<?php
require_once dirname(__FILE__)."/base_model.php";

class admin extends base_model {

	const ADMIN_TABLE = "table_admin";

	public function __construct() {
		parent::__construct();
	}

	//查询个人密码
	public function getInfoByUsername($username) {
		$this->db->select('uid, password, username, group_id');
		$this->db->from(self::ADMIN_TABLE);
		$this->db->where('username', $username);
		return $this->db->get()->row_array();
	}
}